package com.oak.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
// 由于cloud2.1.x版本移除了ribbon，此处需要用loadbalancer做负载
@LoadBalancerClients(defaultConfiguration = {MyLoadBalancerConfig.class})
// 开启openfeign
@EnableFeignClients
public class Consumer80Application {

    public static void main(String[] args) {
        SpringApplication.run(Consumer80Application.class, args);
    }

}
